//
//  BlutoothModel.h
//  FLORIDA
//
//  Created by 魏延(颜魏) on 2023/8/3.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class BlutoothModel;
@interface BlutoothGroupModel : NSObject

@property (nonatomic, copy) NSString *groupId;
@property (nonatomic, copy) NSString *groupName;
@property (nonatomic, copy) NSString *type;
@property (nonatomic, copy) NSString *s; // 列
@property (nonatomic, copy) NSString *p; // 行
@property (nonatomic, strong) NSArray<BlutoothModel *> *bluList;

- (NSDictionary *)toDict;
+ (NSString *)toJson:(NSArray<BlutoothGroupModel *> *)array;
+ (NSArray<BlutoothGroupModel *> *)jsonCovertToModel:(NSString *)json;

@end

@interface BlutoothModel : NSObject

@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *uuid;
@property (nonatomic, copy) NSString *mac;
@property (nonatomic, copy) NSString *sn;

- (NSString *)toJson;
- (NSDictionary *)toDict;
+ (BlutoothModel *)covertToModel:(NSString *)json;
+ (NSString *)toJson:(NSArray<BlutoothModel *> *)array;
+ (NSArray<BlutoothModel *> *)covertToModelList:(NSString *)json;

@end

NS_ASSUME_NONNULL_END
